package actions.events;

import actions.base.BaseAction;

public class AttendanceAdd extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3120823481839962793L;
	public String execute() {
		services.addPersonToEvent(personId, eventId);
		return redirect(String.format("Attendance.action?id=%d", eventId));
	}
	
	int eventId;
	public void setEventId(int value) {
		eventId = value;
	}

	int personId;
	public void setPersonId(int value) {
		personId = value;
	}
}
